//规定数据类型
const mongoose = require("mongoose");
const animalSchema = new mongoose.Schema({
    name: { type: String, default: "admin" },
    age: { type: Number, default: 2 },
    date: { type: Date, default: Date.now }
})

module.exports = animalSchema;